package com.kpx.app.activity;

import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.widget.Button;
import android.widget.TextView;

import com.kpx.app.R;
import com.kpx.app.base.ActivityBase;
import com.kpx.app.bean.ContactInfoBean;
import com.kpx.app.bean.MenuBean;
import com.kpx.app.utils.UIUtils;
import com.kpx.app.utils.UserInfoUtils;
import com.kpx.app.view.TitleView;

import java.util.ArrayList;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;

/**
 * Created by congdy on 17/3/6.
 * 我要合作
 */

public class ActivityCooperation extends ActivityBase {
    @BindView(R.id.titleview)
    TitleView titleview;
    @BindView(R.id.txt_info)
    TextView txt_info;

    @Override
    public void initview(@Nullable Bundle savedInstanceState) {
        setContentView(R.layout.activity_cooperation);
        ButterKnife.bind(this);
        UIUtils.setNormalTitle(titleview, "我要合作");
    }

    @Override
    public void initData() {
        UserInfoUtils.getSellerInfo(ActivityCooperation.this, new UserInfoUtils.OnGetSellerInfoBackListener() {
            @Override
            public void back(ContactInfoBean b) {
                if (b != null) {//E-mail:xxxxx.com\ntel:11111111111
                    txt_info.setText("E-mail:"+b.getEMAIL() + "\ntel:" + b.getTELL());
                }
            }
        });
    }

    @Override
    public void onReceiver(Context context, Intent intent) {

    }

}
